package com.event;

import com.window.Register;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

public class RegEvent implements MouseListener {//注册监听

    @Override
    public void mouseClicked(MouseEvent e) {
        if(e.getButton()==MouseEvent.BUTTON1)//当鼠标左键按下才触发事件
        {
            Register register =new Register();
        }
    }

    @Override
    public void mousePressed(MouseEvent e) { }

    @Override
    public void mouseReleased(MouseEvent e) { }

    @Override
    public void mouseEntered(MouseEvent e) { }

    @Override
    public void mouseExited(MouseEvent e) { }
}
